/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package eao;

import java.util.List;
import javax.ejb.Local;
import model.entity.Customer;

/**
 *
 * @author dingnangen
 */
@Local
public interface EaoLocal<T> {

    int count();

    int count(String str);

    int count(String str, List plist);

    void create(T entity);

    T edit(T entity);

    T find(Object id);

    List<T> findAll();

    List<T> findAll(String str, List p);

    T findOneItem(String str, List p);

    List<T> findRange(int[] range);

    List<T> findRange(int[] range, String str, List p);

    void remove(T entity);

    Object nativeQuery(String sql,List p);
}
